package cn.dhn_app.util.Idcard.exception;

/**
 * @Author lyy
 * @Description TODO
 * @PACKAGE_NAME: cn.dhn_app.util.Idcard.exception
 * @ClassName AipException
 * @Date 2020/8/25 15:49
 * @DAY_NAME_FULL: 星期二
 * @Version 1.0
 **/
public class AipException extends Exception{

    private String errorMsg;
    private int errorCode;

    public AipException(int code, String msg) {
        errorCode = code;
        errorMsg = msg;
    }

    public AipException(int code, Throwable e) {
        errorCode = code;
        errorMsg = e.getMessage();
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
